package Server.Message;

import java.util.ArrayList;

import Server.DataBase.ReportIF;

public class MessageReport extends Message{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	ArrayList<ReportIF> array;
	
	/**
	 * 1- get all report option
	 * 2- return report option
	 *
	 */
	
	private int type;
	
	private int id;
	
	private int idrep;

	public MessageReport() {
		super(MessageType.MESSAGE_REPORT);
	}
	
	public void setArray(ArrayList<ReportIF> array) {
		this.array = array;
	}

	public MessageReport(ArrayList<ReportIF> array, int type) {
		super(MessageType.MESSAGE_REPORT);
		this.array = array;
		this.type = type;
	}
	
	public MessageReport(int type) {
		super(MessageType.MESSAGE_REPORT);
		this.type = type;
	}
	
	public MessageReport(int type, int id) {
		super(MessageType.MESSAGE_REPORT);
		this.type = type;
		this.id = id;
	}
	
	public MessageReport(int type, int id, int idrep) {
		super(MessageType.MESSAGE_REPORT);
		this.type = type;
		this.id = id;
		this.idrep = idrep;
	}

	public ArrayList<ReportIF> getArray() {
		return array;
	}

	public int getType() {
		return type;
	}

	public int getId() {
		return id;
	}
	
	public int getIdRep() {
		return idrep;
	}
}
